home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / how to learn assembler.adf / CH5 / 5_1_check_keys.asm < prev    next >
Assembly Source File  |  1988-02-25  |  216b  |  16 lines

  1. ;(5.1)
  2. start:
  3. skeys = $bfec01
  4.  
  5.     cmp.b #$37,skeys    ; left alt presses
  6.     beq   ende          ; yes end
  7.     cmp.b #$31,skeys    ; left amiga pressed
  8.     beq ende            ; yes end
  9.  
  10.     jmp start
  11.  
  12. ende:
  13.  
  14.  end
  15.  
  16.